package com.angel.utils;

import java.util.Calendar;

public class TimeUtils {

    public static String getTime() {
        StringBuffer sBuffer = new StringBuffer();
        Calendar cal = Calendar.getInstance();
        int yaer = cal.get(Calendar.YEAR);
        int mouth = cal.get(Calendar.MONTH) + 1;
        int day = cal.get(Calendar.DAY_OF_MONTH);
        int hour = cal.get(Calendar.HOUR_OF_DAY);
        int minute = cal.get(Calendar.MINUTE);
        int second = cal.get(Calendar.SECOND);
        int mm = cal.get(Calendar.MILLISECOND);
        sBuffer.append(yaer)
                .append(mouth)
                .append(day)
                .append(hour)
                .append(minute)
                .append(second)
                .append(mm);
        return sBuffer.toString();
    }
}
